<?php 
namespace App\Infra;

use App\Utils\ModelOperatorUtil;
use App\Models\Province;
use App\Models\City;

class AddressManager{
	use ModelOperatorUtil;
	
	public function getAllProvince($conditions = null)
	{
		return $this->findModel(Province::class,Province::query(),$conditions,$first = true) ->get();
	}

	public function getAllCityByProvinceId($conditions = null)
	{
		return $this->findModel(City::class,City::query(),$conditions,$first = true) ->get();
	}
}